#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main()
{
	int arr[25][25] = { 0 };
	int n = 0;
	while (scanf("%d", &n) != EOF)
	{
		int i = 0;
		int j = 0;
		for (i = 0; i < n; i++)
		{
			int k = 0;
			for (j = 0; j <= i; j++)
			{
				arr[i][j] = ++k;
				printf("%d ", arr[i][j]);
			}
			printf("\n");
		}

	}
	return 0;
}